package com.zhdl.modules.prefiresys.entity;

import com.project.common.bean.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 探测器设备反吹记录
 *
 * @author ACodeYuan
 * @Description:
 * @date 2023/7/21 16:15
 * @Version Y-1.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "detector_blow_backlog")
public class DetectorBlowBackLog extends BaseEntity<DetectorBlowBackLog, String> {
    /**
     * ID
     */
    @Id
    @Column(length = 32)
    private String id;

    /**
     * 探测器ID
     */
    @Column(length = 32)
    private String detectorId;

    /**
     * 开始的时间
     */
    @Column(nullable = false, columnDefinition = "datetime default current_timestamp")
    private String startTime;

    /**
     * 结束时间
     */
    @Column(nullable = false, columnDefinition = "datetime default current_timestamp")
    private String endTime;

    /**
     * 完成状况。0 未完成，1为已完成
     */

    private Integer result;

}
